package cn.wolfcode.ssm.service.impl;

import cn.wolfcode.ssm.domain.Employee;
import cn.wolfcode.ssm.domain.User;
import cn.wolfcode.ssm.mapper.EmployeeMapper;
import cn.wolfcode.ssm.mapper.UserMapper;
import cn.wolfcode.ssm.query.QueryObject;
import cn.wolfcode.ssm.service.IEmployeeService;
import cn.wolfcode.ssm.service.IUserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByUsername(String username) {
        return userMapper.getUserByUsername(username);
    }

    @Override
    public List<String> getRoleSnsByEmployeeId(Long userId) {
        return userMapper.getRoleSnsByEmployeeId(userId);
    }

    @Override
    public List<String> getPermissionExpsByEmployeeId(Long userId) {
        return userMapper.getPermissionExpsByEmployeeId(userId);
    }
}
